package com.efamily.ewallet.client.balance.bean;

import java.util.Date;
import com.extjs.gxt.ui.client.data.BaseModelData;

public class BalanceBean extends BaseModelData {

	public BalanceBean() {
	}

	public BalanceBean(int id, Date date, int expensesCount,
			double expensesAmount, int profitsCount, double profitsAmount) {
		setId(id);
		setDate(date);
		setExpensesCount(expensesCount);
		setExpensesAmount(expensesAmount);
		setProfitsCount(profitsCount);
		setProfitsAmount(profitsAmount);
	}

	public int getId() {
		return get("id", -1);
	}

	public void setId(int id) {
		set("id", id);
	}

	public Date getDate() {
		return get("date");
	}

	public void setDate(Date date) {
		set("date", date);
	}

	public int getExpensesCount() {
		return get("expensesCount", 0);
	}

	public void setExpensesCount(int expensesCount) {
		set("expensesCount", expensesCount);
	}

	public double getExpensesAmount() {
		return get("expensesAmount", 0.0);
	}

	public void setExpensesAmount(double expensesAmount) {
		set("expensesAmount", expensesAmount);
	}

	public int getProfitsCount() {
		return get("profitsCount", 0);
	}

	public void setProfitsCount(int profitsCount) {
		set("profitsCount", profitsCount);
	}

	public double getProfitsAmount() {
		return get("profitsAmount", 0.0);
	}

	public void setProfitsAmount(double profitsAmount) {
		set("profitsAmount", profitsAmount);
	}

	public String getDescription() {
		return get("description", "");
	}

	public void setDescription(String description) {
		set("description", description);
	}

}
